module ApplicationHelper
  include LetterAvatar::AvatarHelper

  def default_icon_path(pinyin_name)
    LetterAvatar.generate(pinyin_name, 200)if !File.exist?("#{Rails.root.to_path}/#{letter_avatar_for(pinyin_name, 200)}")
    letter_avatar_url pinyin_name, 200
  end
end
